﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using Economo.Services.BusinessEntities;

namespace Economo.Services.MessageContracts
{
    [MessageContract]
    public class GetBankAccountsRequest
    {
        [MessageBodyMember]
        public Byte BankId { get; set; }
    }
    [MessageContract]
    public class GetBanksAccountsResponse
    {
        [MessageBodyMember]
        public List<BankAccount> Accounts { get; set; }
    }

    [MessageContract]
    public class UpdateBankAccountRequest
    {
        [MessageBodyMember]
        public BankAccount Account { get; set; }
    }

    [MessageContract]
    public class DeleteBankAccountByIdRequest
    {
        [MessageBodyMember]
        public byte BankId { get; set; }
        [MessageBodyMember]
        public Int16 AccountId { get; set; }

    }

    [MessageContract]
    public class DeleteBankAccountRequest
    {
        [MessageBodyMember]
        public BankAccount Account { get; set; }
    }

    [MessageContract]
    public class InsertBankAccountRequest
    {
        [MessageBodyMember]
        public BankAccount Account { get; set; }
    }
    [MessageContract]
    public class InsertBankAccountResponse
    {
        [MessageBodyMember]
        public Int16 AccountId { get; set; }
    }
}
